Skip to content

Conversation

@tetienne
Copy link
Collaborator

@tetienne tetienne commented Jan 9, 2026

Summary

  • Add missing creation_time parameter to Zone.__init__()
  • Fix timestamp type annotations from str to int to match API format

Problem

The Zone class declared creation_time as an attribute but never initialized it in __init__, causing AttributeError when accessed.

Test plan

  • All existing tests pass
  • Pre-commit checks pass

@github-actions github-actions bot added the bug Something isn't working label Jan 9, 2026
The Zone class declared creation_time as an attribute but never
initialized it in __init__, causing AttributeError when accessed.

Also fixes type annotations from str to int to match API timestamps.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a bug in the Zone class where creation_time was declared as an attribute but never initialized in the constructor, and corrects timestamp type annotations to match the actual API format.

Changes:

  • Added missing creation_time parameter initialization in Zone.__init__()
  • Changed timestamp type annotations from str to int for both creation_time and last_update_time to match API format

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants